function toast(title, duration = 1500) {
	return new Promise ((resolve, reject)=>{
		uni.showToast({
			title: title,
			icon: 'none',
			duration: duration
		})
		setTimeout(() => {
			resolve()
		}, 1500)
	})
}

export default toast
